')}})},initImagePreview:function(){function a(){var i=[];l(".lw_preview_image”).each(function(){var e=l(this);var t=e.find("img");i.push({src:e.attr(“href”),标题:s.lib.htmlDecode(t.attr (data-caption) | | t.attr(“alt ")||"")})}); 返回我n}.on("click",".lw_preview_image”功能(e) {e.preventDefault (); var t = l(这),i = t.find("img").eq(0).attr("alt");if(t.hasClass("lw_disable_preview"))return true;if("image"===i)i="";s.previewImage(t.attr("href"),i,a());return true})},initDetailPreview:function(){l('
').html('Here’s the preview you requested.
点击关闭窗口').prependTo(n);n.l(“addClass(“lw_is_preview”);.lw_close_window").(“点击”,函数(){窗口.close();return false})},initIngredientsPreviewNotification:function(){if(s.ingredients_preview) {var e, e = "
Live Preview You are previewing unpublished changes."+'
turn off';n.addClass(“has_lw_notice”).通知({id:“lw_is_hidden_message”,message:e,type:"success",close_button:假,slideIn:0,custom_class:"lw_ingredients_live_preview"});l(".js-turn-off-live-preview”).(“点击”,函数(){l.ajax ({url:“/ livewhale /后端.php",数据:{livewhale:“ajax”,function:"disableIngredientsPreview"},method:"GET",dataType:"json",成功:函数(e) {e = e | |{};如果(l.isEmptyObject (e) | | e.error){s.prompt("Error",e.error||"Unable to disable preview mode.”、“警告”)}{窗口.location.reload(true)}}})})}},initHiddenPageNotification:function(){var e;e="This page is marked as hidden. 公众是看不到的.";n.addClass(“has_lw_notice”).通知({id:“lw_is_hidden_message”,message:e,type:"warning",close_button:假,slideIn:0});var t=l("#lw_is_hidden_message").outerHeight () 2; l(“# lw_toolbar”).动画({:t}, 180); l(“# lw_page”).animate({marginTop:"+="+t+"px"},180)},initSubnavToggle:function(){var e=l(".lw_subnav_toggle”);如果(!e.length)return;e.每个(函数(){l(这).on("click",function(){var e=l(this).next("ul");if(e.is(":visible")){e.slideUp(400年,函数(){l(这).closest("li").removeClass(“lw_expanded”);l(这).attr(“aria-hidden”,“真正的”);l(这).prev(".lw_subnav_toggle”).attr("aria-expanded","false")})}else{if(l(".lw_subnav_toggle”).下一个(“ul:可见”).length){l(".lw_subnav_toggle”).下一个(“ul:可见”).slideUp(400年,函数(){l(这).closest("li").removeClass(“lw_expanded”);l(这).attr(“aria-hidden”,“真正的”);l(这).prev(".lw_subnav_toggle”).attr(“aria-expanded”,“假”);e.slideDown(650年,函数(){l(这).closest("li").addClass(“lw_expanded”);l(这).attr("aria-hidden","false");l(this).prev(".lw_subnav_toggle”).attr("aria-expanded","true")})})}else{e.slideDown(650年,函数(){l(这).closest("li").addClass(“lw_expanded”);l(这).attr("aria-hidden","false");l(this).prev(".lw_subnav_toggle”).attr("aria-expanded","true")})}}return false})})},initPayments:function(){if(!l(".lw_payments").length)return;l.getScript(s.liveurl_dir+"/resource/js/livewhale/theme/core/scripts/payments.js",function(){s.payments.init()})},initDateAgoElements:function(){if(!l(".lw_date_ago").长度)返回;函数e () {l.each(l(".lw_date_ago"),function(){if(l(this).attr("data-date")){var e=new Date(l(this).attr(“资料”));如果(e&&!isNaN(e.getTime()) {var t=新日期,i=(t.getTime()-e.取得时间())/ 1 e3, a =数学.地板(i / 86400), n =数学.地板((我* 86400)/ 3600),o =数学.floor((i-a*86400-n*3600)/60),s=Math.floor(i-a*86400-n*3600-o*60);l(this).html(a>=1?a+" day"+(a!==1?"s":"")+" ago":n>=1?n+" hour"+(n!==1?"s":"")+" ago":o>=1?o+" minute"+(o!==1?"s":"")+" ago":s>=1?s+" second"+(s!==1?"s":"")+" ago":"")}}})}e();setInterval(function(){e()},6e4)},initEventDetailPage:function(){var e=l("#lw_cal_add_to_calendar, .lw_cal_add_to_calendar”);如果(!e.length)return;e.on("click"," > a",function(e){e.preventDefault (); var t = l(这),i = t.parent().find("ul");if(i.is(":visible")){t.其他removeClass (lw_active)} {t.我addClass (lw_active)}.slideToggle(200);还真}).(“点击”、“李”,函数(e) {e.preventDefault (); var t = l(这).find(".lw_cal_icon”),我;如果(t.hasClass(“lw_cal_google”)){我=.lib.getAddToGoogleLink (s.details_data)} else if (t.hasClass(“lw_cal_yahoo”)){我=.lib.getAddToYahooLink (s.details_data)} else if (t.hasClass (lw_cal_ical) | | t.hasClass(“lw_cal_outlook”)){我=.liveurl_dir + / ical /事件/ id /”+ s.details_id + " /前景/ 1 "}的窗口.open(i,"SaveToCalendar")})},initDetailPageMaps:function(){if(!s.is_details_template | |!s.latitude||!s.longitude||!l(".details_map").长度){返回false}var e=l(".details_map”);var t = e.attr(“data-aspect-ratio”)?e.attr(“data-aspect-ratio”):"1:1";var i=e.attr("data-zoom")?e.attr(“data-zoom”):17;e.lwGoogleMapsEmbed ({api_key: s.maps_api_key纬度:s.纬度、经度:s.longitude,aspect_ratio:t,zoom:i})},showTestingMessage:function(){var e;n.notify({id:"lw_testing_message",message:"
This has been marked as a test page.",type:"warning",close_button:假,slideIn:0});e=l("#lw_testing_message").outerHeight();n.css(“margin-top”,e); n.(“pageEditorInit.lw",function(){n.css(“margin-top”,0),l(“# lw_page”).css("margin-top","+="+e);l("#lw_toolbar").css(“顶级”,e)}}}); l (s(){函数.frontend.init();if(s.is_hidden_page){s.frontend.initHiddenPageNotification ()}.frontend.initIngredientsPreviewNotification()})})(livewhale.jQuery||window.jQuery, livewhale);
/* Resource ID: 75aa3fc9331361725c5d7ea5479 ('+document.location.href.replace() */
/*资源未找到(). */
/* Resource ID: 815417267f76f6f460a4a61f9db ([) */
/*资源未找到(). */